package com.ash.filter;

import org.apache.dubbo.rpc.*;

public class DemoFilter implements Filter {
    @Override
    public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
        Result result = invoker.invoke(invocation);
//        // Obtain the returned value
//        Result appResponse = ((AsyncRpcResult) result).getAppResponse();
//        // Appended value
//        appResponse.setValue(appResponse.getValue()+"'s customized AppendedFilter");

        System.out.println("filter demo...");

        return result;
    }
}
